package t1003;

public class Main {

    static void printDigit(int n) {


        if (n == 0)
            return;

        printDigit(n / 10);
        System.out.println(n % 10);
    }

    static void int2pinyin(int n, StringBuffer sb) {

        if (n == 0)
            return;

        int2pinyin(n / 10, sb);
        sb.append(n % 10 + " ");

    }

    public static void main(String[] args) {


//        printDigit(1234);


        StringBuffer sb = new StringBuffer();
        int2pinyin(1234, sb);
        System.out.println(sb.toString());
    }

}
